package ink.metoo.gude.module.websocket.util

import org.springframework.messaging.Message
import org.springframework.messaging.simp.stomp.StompHeaderAccessor
import org.springframework.messaging.support.MessageHeaderAccessor

fun Message<*>.asStompHeaderAccessor() = MessageHeaderAccessor.getAccessor(this, StompHeaderAccessor::class.java)!!


